/****************************************************************************
   Copyright 2013 Stacy Doss

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
****************************************************************************/

#ifndef _DEFCOMPONENT_H
#define _DEFCOMPONENT_H

#include <vector>
#include <string>
#include "Enums.h"
#include "Point.h"

namespace def {

	class Component {
		private:
		std::string 	_name;
		std::string 	_model;
		std::string 	_eeqmaster;
		std::string		_foreignName;
		util::Point*	_foreignOrigin;
		std::string		_foreignOrient;
		util::SOURCE_TYPE 		_source;
		util::PLACEMENT_TYPE 	_placement;
		util::Point*	_origin;
		std::string		_orient;
		int 			_weight;
		std::string 	_regionName;
//		[+ PROPERTY {propName propVal} ...]...

		public:
			Component();
			Component(std::string name);
			Component(std::string name, std::string model);
			~Component();

			void setName(std::string);
			void setModel(std::string);
			void setEeqMaster(std::string);
			void setSource(util::SOURCE_TYPE);
			void setForeignName(std::string);
			void setForeignOrigin(util::Point*);
			void setForeignOrient(std::string);
			void setPlacement(util::PLACEMENT_TYPE);
			void setOrigin(util::Point*);
			void setOrient(std::string);
			void setWeight(int);
			void setRegionName(std::string);

	};
}

#endif
